<template>
  <div id="userLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header
        @click="toHome"
        style="text-align: center; margin: 0 auto; margin-top: 20px"
      >
        <img
          style="float: left"
          src="../assets/Logo_TV_2015.svg.png"
          width="80px"
        />
        <div class="title">岭 做题</div>
      </a-layout-header>
      <a-layout-content>
        <router-view></router-view>
      </a-layout-content>
    </a-layout>
  </div>
</template>

<style scoped>
.layoutFooter {
  text-align: center;
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #eeeeee;
}

.title {
  float: left;
  width: 30px;
  font-size: 22px;
  margin-left: 30px;
  color: #444;
}

#userLayout {
  /*background-image: url("@/assets/OIP.jpg");*/
  /*background-repeat: repeat;*/
  //background-size: cover; //background-attachment: fixed;
}
</style>
<script setup lang="ts">
import { useRouter } from "vue-router";

const router = useRouter();

const toHome = () => {
  router.push({
    path: "/",
  });
};
</script>
